package com.demo.villageresidence.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName tb_remark
 */
@TableName(value ="tb_remark")
@Data
public class Remark implements Serializable {
    /**
     * 言论表id
     */
    @TableId(type = IdType.AUTO)
    private Integer remarkId;

    /**
     * 发布时间
     */
    private LocalDateTime remarkTime;

    /**
     * 内容
     */
    private String remarkContent;

    /**
     * 回复次数
     */
    private Integer remarkReplyNumber;

    /**
     * 点赞次数
     */
    private Integer remarkLikeNumber;

    /**
     * 回复的对象
     */
    private String remarkTarget;
    private Integer remarkUserId;

    /**
     * 父级评论ID
     */
    private Integer remarkPid;

    /**
     * 用户表id   外键（user表-user_id）
     */
    private Integer userId;

    /**
     * 是否点赞过了
     */
    @TableField(exist = false)
    private Integer isLike;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private List<Remark> remarkList;



    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}